package com.lemon.exam.entity.po;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.data.annotation.Id;
import org.springframework.data.relational.core.mapping.Column;
import org.springframework.data.relational.core.mapping.Table;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 通知公告表 持久层对象
 *
 * @author Lemon
 * @since 2025/04/21 16:04:03
 */
@Getter
@Setter
@ToString
@Table(value = "sys_notice")
@Schema(name = "通知公告表")
public class NoticePO implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    @Id
    @Schema(description = "主键ID")
    @Column(value = "id")
    private Long id;

    @Schema(description = "公告标题")
    @Column(value = "title")
    private String title;

    @Schema(description = "公告内容")
    @Column(value = "content")
    private String content;

    @Schema(description = "类型 1通知 2公告")
    @Column(value = "type")
    private Integer type;

    @Schema(description = "备注")
    @Column(value = "remark")
    private String remark;

    @Schema(description = "创建人ID")
    @Column(value = "create_id")
    private Long createId;

    @Schema(description = "创建者")
    @Column(value = "create_by")
    private String createBy;

    @Schema(description = "创建时间")
    @Column(value = "create_time")
    private LocalDateTime createTime;

}
